// JavaScript Document
var rootPath="/ystd";
function ding(id,support){
	var after=support+1;
	$.post(rootPath+"/index/dingcai.dch","album.albumid="+id+"&dingOrCai=1",function(response){
		if(response.length<1){
			alert("你已经发表过看法了");
		}else{
			$("#ding").val("推荐人数：("+after+")");
			alert("多点我吧，我就 会榜上有名啦！");
		}
	})
}
function cai(id,oppose){
	var after=oppose+1;
	$.post(rootPath+"/index/dingcai.dch","album.albumid="+id+"&dingOrCai=0",function(response){
		if(response.length<1){
			alert("你已经发表过看法了");
		}else{
			$("#cai").val(after+"这么多人踩了我！");
		}
	})
}